<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>键盘事件</title>
    <link rel="stylesheet" href="./demo11.css">
</head>
<body>
    <div  class="container">
        <p>eventKey</p>
        <div id="div1" class="content">A</div>
    </div>
    <div  class="container">
        <p>eventKeyCode</p>
        <div id="div2" class="content">B</div>
    </div>
    <div  class="container">
        <p>eventCode</p>
        <div id="div3" class="content">C</div>
    </div>
    <script src="./demo11.js"></script>
</body>
</html>